package demo;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: rei
 * Date: 2025-11-26
 * Time: 11:55
 */
public class InputStream_1 {
    public static void main(String[] args) throws IOException {
        File file = new File("C:/temp/345.txt");
        FileInputStream fileInputStream = new FileInputStream(file);

        while(true){
            int data = fileInputStream.read();
            if (data == -1){
                break;
            }
            System.out.println(data);
        }
    }
}
